//
//  JFCrazyTool.h
//  JF_New_DYKT
//
//  Created by 陈雷 on 2017/8/24.
//  Copyright © 2017年 陈雷. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WXApi.h"

@protocol WXApiManagerDelegate <NSObject>

@optional

- (void)managerDidRecvGetMessageReq:(GetMessageFromWXReq *)request;

- (void)managerDidRecvShowMessageReq:(ShowMessageFromWXReq *)request;

- (void)managerDidRecvLaunchFromWXReq:(LaunchFromWXReq *)request;

- (void)managerDidRecvMessageResponse:(SendMessageToWXResp *)response;

- (void)managerDidRecvAuthResponse:(SendAuthResp *)response;

- (void)managerDidRecvAddCardResponse:(AddCardToWXCardPackageResp *)response;

- (void)managerDidRecvPayResponse:(PayResp *)response;

@end

@interface JFCrazyTool : NSObject <WXApiDelegate>

+ (UIImage *)imageWithColor:(UIColor *)color;
+ (NSString *)md5:(NSString *)str;

+ (instancetype)shareManager;

@property (nonatomic, assign) id<WXApiManagerDelegate> delegate;

@end
